package chapter6;
import java.util.Scanner;

/****************************************************************
 * Author：icynlau
 * Description: 毫秒转成时分秒
- * Date:2021/4/5
 * ***************************************************************
 */
public class exc6_25 {
	
	final  static long MILLISECONDS=100000;
	
	public static void main(String[] args) {
		
		System.out.print(convertMills(MILLISECONDS));
		
	}
	
	public static String convertMills(long millis) {
		
		
		
		
		
		long Hour=millis/1000/60/60;
		
		long Minute=(millis-Hour*60*60*1000)/1000/60;
		
		
		long Second=(millis-Minute*60*1000-Hour*60*60*1000)/1000;
		
		
		String s="";
		s=s+MILLISECONDS+" milliseconds is  "+Hour+":"+Minute+":"+Second;
		
		return s;
		
	}

}
